package com.xu.service.impl;

import com.xu.service.SomeService;
import com.xu.service.Student;
import org.springframework.stereotype.Component;

@Component("SomeService")
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name,int age) {
        System.out.println("名字:"+name+",年龄:"+age);
        System.out.println("=====执行doSome方法=====");
    }

    @Override
    public String doOther(String name, int age) {
        System.out.println("=====执行doOther方法=====");
        return "abcd";
    }

    @Override
    public Student doStudent() {
        System.out.println("=====执行doStudent方法=====");
        Student student = new Student();
        return student;
    }

    @Override
    public String First(String name, int age) {
        System.out.println("=====执行First方法=====");
        return "doFirst";
    }

    @Override
    public void doSecond() {
        System.out.println("=====执行doSecond方法=====");
    }

    @Override
    public void doFinally() {
        System.out.println("=====执行doFinally方法=====");
    }
}
